<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var arr = ['html','css','js','nodejs','ajax',
        'vue','react','angular','ionic']
        // 取随机下标
        var index = Math.floor(Math.random()*10);
        console.log(arr[index]);  
    </script>
</body>
</html>